const mgs = require('mongoose')

const schema = new mgs.Schema({
    username: { type: String },
    password: {
        type: String,
        /* set(val) {
            return require('bcrypt').hashSync(val, 10)
        } */
    },
    role: { type: String },
    avatar: { type: String },

})

module.exports = mgs.model('Admin', schema)